package org.xi.behavioral.interpreter.impl;

import org.xi.behavioral.interpreter.api.Expression;

/**
 * 终结符表达式 - 数字
 */
public class Number implements Expression {
    private final int value;

    public Number(int value) {
        this.value = value;
    }

    @Override
    public int interpret() {
        return value;
    }
}
